package com.clms.system.pojo.entitry;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Api("角色实体")
public class SysRole {
@TableId(value = "role_id",type = IdType.AUTO)
@ApiModelProperty(value = "角色id")
  private long roleId;
  @ApiModelProperty(value = "角色名称")

  private String roleName;
  @ApiModelProperty(value = "**")
  private String roleKey;
  @ApiModelProperty(value = "**")
  private long roleSort;
  private String dataScope;
  private String status;
  private String delFlag;
  private String createBy;
  private String updateBy;
  private String remark;
  @ApiModelProperty(value = "创建时间")
  @TableField(fill = FieldFill.INSERT)
  @DateTimeFormat(pattern="yyyy-MM-dd")
  @JsonFormat(pattern = "yyyy-MM-dd")
  private Date createTime;
  @ApiModelProperty(value = "更新时间")
  @DateTimeFormat(pattern="yyyy-MM-dd")
  @JsonFormat(pattern = "yyyy-MM-dd")
  @TableField(fill = FieldFill.INSERT_UPDATE)
  private Date updateTime;

}
